<?
$modul = CM_getParameter('modul');
$flag = "";
if ($modul == 'home') {
    $flag1 = "background-color: yellow";
    $flag2 = "";
    $flag3 = "";
    $flag4 = "";
    $flag5 = "";
    $flag6 = "";
    $flag7 = "";
} else if ($modul == 'products') {
    $flag1 = "";
    $flag2 = "background-color: yellow";
    $flag3 = "";
    $flag4 = "";
    $flag5 = "";
    $flag6 = "";
    $flag7 = "";
} else if ($modul == 'services') {
    $flag1 = "";
    $flag2 = "";
    $flag3 = "background-color: yellow";
    $flag4 = "";
    $flag5 = "";
    $flag6 = "";
    $flag7 = "";
} else if ($modul == 'gallery') {
    $flag1 = "";
    $flag2 = "";
    $flag3 = "";
    $flag4 = "background-color: yellow";
    $flag5 = "";
    $flag6 = "";
    $flag7 = "";
} else if ($modul == 'event') {
    $flag1 = "";
    $flag2 = "";
    $flag3 = "";
    $flag4 = "";
    $flag5 = "background-color: yellow";
    $flag6 = "";
    $flag7 = "";
} else if ($modul == 'about') {
    $flag1 = "";
    $flag2 = "";
    $flag3 = "";
    $flag4 = "";
    $flag5 = "";
    $flag6 = "background-color: yellow";
    $flag7 = "";
} else if ($modul == 'contacts') {
    $flag1 = "";
    $flag2 = "";
    $flag3 = "";
    $flag4 = "";
    $flag5 = "";
    $flag6 = "";
    $flag7 = "background-color: yellow";
}
?>
<div class="child-nav">
    <strong>
        <div class="aaa">    
        </div>
        <div class="child_div_nav" style="border-left: 1px solid #dfdfdf;<?= $flag1 ?>" onclick="redirect_url('home');">
            <!--<a href="trang-chu">-->
            <a class="color_a_menu_top" href="?modul=home">
                Trang Chủ
            </a>
        </div>
        <div class="child_div_nav" style="<?= $flag2 ?>" onclick="redirect_url('products');">
            <!--<a href="san-pham">-->
            <a class="color_a_menu_top" href="?modul=products">
                Sản Phẩm
            </a>
        </div>
        <div class="child_div_nav" style="<?= $flag3 ?>" onclick="redirect_url('services');">
            <!--<a href="dich-vu">-->
            <a class="color_a_menu_top" href="?modul=services">
		Dịch Vụ
            </a>
        </div>
        <div class="child_div_nav" style="<?= $flag4 ?>" onclick="redirect_url('gallery');">
            <!--<a href="thu-vien-anh">-->
            <a class="color_a_menu_top" href="?modul=gallery">
		Thư Viện Ảnh
            </a>
        </div>
        <div class="child_div_nav" style="<?= $flag5 ?>" onclick="redirect_url('event');">
            <!--<a href="su-kien">-->
            <a class="color_a_menu_top" href="?modul=event">
                Sự Kiện
            </a>
        </div>
        <div class="child_div_nav" style="<?= $flag6 ?>" onclick="redirect_url('about&action=about');">
            <!--<a href="gioi-thieu">-->
            <a class="color_a_menu_top" href="?modul=about&action=about">
                Giới Thiệu
            </a>
        </div>
        <div class="child_div_nav" style="<?= $flag7 ?>" onclick="redirect_url('contacts&action=contacts');">
            <!--<a href="lien-he">-->
            <a class="color_a_menu_top" href="?modul=contacts&action=contacts">
                Liên Hệ
            </a>
        </div>
    </strong>
</div>
<script>
    function redirect_url(modu_url) {
	var url = '?modul=' + modu_url;
	window.location.href = url;
    }
</script>